package com.world.cat.model.sys;

import com.world.common.generate.auto.Action;
import com.world.common.generate.auto.QField;
import com.world.common.generate.auto.QFieldQueryType;
import com.world.common.model.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by gang on 2016/6/26 0026.
 * 地区
 */
@Entity
@Table(name = "sys_area")
public class Area extends BaseEntity {
    @QField(name = "地区id", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "area_id")
    private String areaId;//地区id
    @QField(name = "地区名称", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "area_name")
    private String areaName;//地区名称
    @QField(name = "父级地区id", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "parent_id")
    private String parentId;//父级地区id
    @QField(name = "经度", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    private Double longitude;//经度
    @QField(name = "纬度", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    private Double latitude;//纬度
    @QField(name = "是否手动添加", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "if_handle")
    private String ifHandle;

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getIfHandle() {
        return ifHandle;
    }

    public void setIfHandle(String ifHandle) {
        this.ifHandle = ifHandle;
    }
}
